Skip to content

Fix Mac Whisper speech-to-text beep in terminal#28

Closed
dhilgaertner wants to merge 2 commits intomainfrom
feature/rm-ai-ide-25-mac-whisper-input
Closed

Fix Mac Whisper speech-to-text beep in terminal#28
dhilgaertner wants to merge 2 commits intomainfrom
feature/rm-ai-ide-25-mac-whisper-input

Conversation

@dhilgaertner
Copy link
Copy Markdown
Contributor

@dhilgaertner dhilgaertner commented Apr 3, 2026

Summary

  • Adds doCommand(by:) override to GhosttySurfaceView to prevent NSBeep when interpretKeyEvents dispatches unhandled selectors (e.g. noop:, cancel:)
  • This satisfies the NSTextInputClient protocol requirement for command handling, enabling external text injection tools like Mac Whisper to work without producing error sounds

Closes #25

Test plan

  • Verify normal keyboard input still works (typing, arrows, escape, function keys)
  • Verify Cmd+C copy and Cmd+V paste work
  • Verify image paste into Claude Code works
  • Verify Mac Whisper push-to-talk inserts transcribed text without beep
  • Verify no system alert sounds during normal terminal use

🤖 Generated with Claude Code

@dhilgaertner dhilgaertner force-pushed the feature/rm-ai-ide-25-mac-whisper-input branch from e51d7db to ce35e5a Compare April 3, 2026 22:17
@dgershman
Copy link
Copy Markdown
Collaborator

Just tried this out, and it hasn't improved anything.

…xt (#25)

Add doCommand(by:) override to GhosttySurfaceView to prevent NSBeep when
interpretKeyEvents dispatches unhandled selectors (noop:, cancel:, etc.).
This also satisfies the NSTextInputClient protocol requirement, enabling
external text injection tools like Mac Whisper to work properly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dhilgaertner dhilgaertner force-pushed the feature/rm-ai-ide-25-mac-whisper-input branch from ce35e5a to 971d365 Compare April 5, 2026 21:24
@dhilgaertner dhilgaertner requested a review from dgershman as a code owner April 5, 2026 21:24
@dgershman
Copy link
Copy Markdown
Collaborator

Just tried it again, same problem.

@dgershman
Copy link
Copy Markdown
Collaborator

resolved by #25

@dgershman dgershman closed this Apr 6, 2026
@dhilgaertner dhilgaertner deleted the feature/rm-ai-ide-25-mac-whisper-input branch April 16, 2026 02:29
@dhilgaertner dhilgaertner restored the feature/rm-ai-ide-25-mac-whisper-input branch April 16, 2026 02:51
@dhilgaertner dhilgaertner deleted the feature/rm-ai-ide-25-mac-whisper-input branch April 16, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mac Whisper does not seem to work in the Claude input.

2 participants